<!doctype html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<style type='text/css'>
		.float-left{float: left;}
        #content_holder{float: left; }
        .example{float: left;width: 100%;padding-top:10px;padding-bottom:10px;text-align: center; margin-top:5px;}
        .example p{text-indent: 2em;}
        .example h3{text-align: center;}
        .example .operator{width: 100%;float: center ;padding-top:10px;padding-bottom:10px;text-align: center;margin-top:5px;}
        .example-1{background: Black;color: Black;}
        .example-1 img{display:inline-block;width: 300px;float: left;margin-left: 10px;margin-right: 15px;padding: 8px;}
		.example-2{color: Black;}
		a {color:black;text-decoration:underline;}

    </style>
<!--[if lt IE 9]>
        <script src="http://www.jq22.com/demo/jQueryPrint201703012350/js/vendor/html5-3.6-respond-1.1.0.min.js"></script>
    <![endif]-->

<style type="text/css" media="print">
.noprint{display : none }
</style>

<body>


<div id="ele2" class="example example-2 operator">

	<!--startprint1-->
	<p align="center" >
	<h2 align="center">佛山市林业科学研究所请（休）假条</h2>
	</p>
	<strong> </strong>

	<div align="center">
	<table width="920" border="1" cellspacing="0" >
	  <tr >
		<td width="150" valign="center" height="35"><p align="center" >姓名 </p></td>
		<td width="110" valign="center" ><p align="left" >&nbsp;{$vo.name}</p></td>
		<td width="65" valign="center" ><p align="center" >工龄 </p></td>
		<td width="127" valign="center" ><p align="left" >&nbsp;{$vo.gongling}</p></td>
		<td valign="center" colspan="2" ><p align="center" >应休天数 </p></td>
		<td width="136" valign="center" ><p align="left" >&nbsp;{$vo.yingxiu}天</p></td>
		<td width="193" colspan="2" valign="center" >已休：{$vo.yixiu}天,未休：{$vo.weixiu}天</td>
		</tr>
	  
	  <tr >
		<td width="150" height="70" valign="center" ><p align="center" >请（休）假类型 </p></td>
		<td valign="center" colspan="8" >
		
		
								{foreach $leixing as $k=>$v}
							{if $k !=''}
								{eq name='$vo.leixing' value='$k.""'}
	<input type="radio"  title="{$v}" checked value="{$k}" {if isset($vo) and isset($vo.leixing)}  {/if} >{$v}
							
								{else}
	<input type="radio"  title="{$v}" value="{$k}"  {if isset($vo) and isset($vo.leixing)} disabled {/if}>{$v}
								{/eq}
							{/if}
							 {if $k ==10}
							 <br>
							 {/if}
							{/foreach}
		
		</td>
	  </tr>
	  <tr >
		<td width="150" height="70" valign="center" ><p align="center" >请（休）假原因 </p></td>
		<td valign="center" colspan="8" ><p align="left" >&nbsp;{$vo.remark}</p></td>
	  </tr>
	  <tr >
		<td width="150" height="70" valign="center" ><p align="center" >请（休）假时间 </p></td>
		<td valign="center" colspan="5" ><p align="left" >&nbsp;&nbsp;{$vo.startdate}&nbsp; 至  &nbsp;{$vo.enddate}</p></td>
		<td valign="center" colspan="1" ><p align="center" >请（休）假 
		  天数 </p></td>
		<td valign="center" colspan="2" ><p align="left" >&nbsp;{$vo.days}天</p></td>
	  </tr>
	  <tr >
		<td width="150" height="125" valign="center" ><p align="center" >人事工作人员
		  <br>意见</p></td>
		<td valign="center" colspan="8" >
	  {foreach $flow as $key=>$vo}
		  {if $vo['types'] == 'shouwenwenyuan'}
		  &nbsp; {$vo.username}:{$vo.info}&nbsp;  ({$vo.create_at|format_datetime='Y-m-d'})<br>
		  {/if}
	  {/foreach}
		
		</td>
	  </tr>
	  <tr >
		<td width="150" height="150" valign="center" ><p align="center" >部门（团队） <br>
		  意见 </p></td>
		<td valign="center" colspan="3" >
		
	  {foreach $flow as $key=>$vo}
		  {if $vo['types'] == 'keshifuzeren'}
		  &nbsp; {$vo.username}:{$vo.info}&nbsp;  ({$vo.create_at|format_datetime='Y-m-d'})<br>
		  {/if}
	  {/foreach}
		
		</td>
		<td valign="center" colspan="2" ><p align="center" >领导批准 </p></td>
		<td valign="center" colspan="3" ><p align="center" >
		
		
	  {foreach $flow as $key=>$vo}
		  {if $vo['types'] == 'fenguanlingdao'}
		  &nbsp; {$vo.username}:{$vo.info}&nbsp;  ({$vo.create_at|format_datetime='Y-m-d'})<br>
		  {/if}
	  {/foreach}
		
		
		</p></td>
	  </tr>
	</table>
	</div>






<p align="center">打印人：{:session('admin_user.nickname')}&nbsp; &nbsp; &nbsp; &nbsp; 打印日期：{:date('Y年m月d日 H:i',time());} </p>

<!--endprint1-->

<div class="operator" align="center">
<button class="print-link no-print">
打印页面
</button>
</div>
</div>



<script src="__ROOT__/static/jquery-1.10.2.js"></script>
<script src="__ROOT__/static/jQuery.print.js"></script>
<script type='text/javascript'>
        //<![CDATA[
        $(function() {
            $("#ele2").find('.print-link').on('click', function() {
                //Print ele2 with default options
				//alert('11');
                $.print("#ele2");
            });
            $("#ele4").find('button').on('click', function() {
                //Print ele4 with custom options
                $("#ele4").print({
                    //Use Global styles
                    globalStyles : false,
                    //Add link with attrbute media=print
                    mediaPrint : false,
                    //Custom stylesheet
                    stylesheet : "http://fonts.useso.com/css?family=Inconsolata",
                    //Print in a hidden iframe
                    iframe : false,
                    //Don't print this
                    noPrintSelector : ".avoid-this",
                    //Add this at top
                    prepend : "Hello World!!!<br/>",
                    //Add this on bottom
                    append : "<br/>Buh Bye!"
                });
            });
            // Fork https://github.com/sathvikp/jQuery.print for the full list of options
        });
        //]]>
    </script>
</body>
</html>
